package cerebrum.entity;

import javafx.scene.text.Font;

import java.io.IOException;

/**
 * 字体加载
 */
public class FontCacheEntity {

    public static Font YGY2TTF = null;
    static {
        try {
            YGY2TTF = Font.loadFont(FontCacheEntity.class.
                    getResource("/fxml/font/YGY2.ttf").openStream(), 40);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Font liguofuTTF = null;

    static {
        try {
            liguofuTTF = Font.loadFont(FontCacheEntity.class.
                    getResource("/fxml/font/liguofu.TTF").
                    openStream(), 40);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Font myFontTTF;

    static {
        try {
            myFontTTF = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/myfont.ttf").openStream(), 13);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    public static Font FZBangSXJW;

    static {
        try {
            FZBangSXJW = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/FZBangSXJW.TTF").openStream(), 20);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Font yzxsTTF;

    static {
        try {
            yzxsTTF = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/yinzhangxingshu.ttf").openStream(), 26);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Font threeTTF56;

    static {
        try {
            threeTTF56 = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/3.ttf").openStream(), 56);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Font threeTTF21;

    static {
        try {
            threeTTF21 = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/3.ttf").openStream(), 21);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public static Font FZYongKTJF;

    static {
        try {
            FZYongKTJF = Font.loadFont(FontCacheEntity.class.getResource("/fxml/font/FZYongKTJF_Da.TTF").openStream(),20);
        }catch (IOException e) {
            e.printStackTrace();
        }
    }

}
